<script setup lang="ts">
import {ref} from "vue";
import { useRouter } from 'vue-router';
import FixedNav from "@/components/fixedNav/fixedNav.vue";
import Bottom from "@/components/bottom/bottom.vue";

const activeNav = ref('3') // 默认选中首页
const activeSubNav = ref('3-3')

// 定义路由的跳转
const router = useRouter();
const navigateTo = (path: string) => {
  router.push(path);
};
</script>

<template>
  <div class="mainContain">
    <fixed-nav v-model:active-nav="activeNav"
               v-model:active-sub-nav="activeSubNav"></fixed-nav>
    <div class="intellectualSection1">
<img src="@/assets/images/intellectualTitle.png" class="intellectualTitle" alt="intellectualTitle">
      <span class="intellectualPoint intellectualPoint1"></span>
      <span class="intellectualContent intellectualContent1">多途径溯源</span>
      <span class="intellectualPoint intellectualPoint2"></span>
      <span class="intellectualContent intellectualContent2">线上线下固证</span>
      <span class="intellectualPoint intellectualPoint3"></span>
      <span class="intellectualContent intellectualContent3">全链路精准打击</span>

    </div>
    <div class="intellectualSection2">
      <div class="intellectualPropertyProtection2Contain">
        <span class="intellectualPropertyProtection2Title">知产保护</span>
        <span class="intellectualPropertyProtection2Content">
          针对涉嫌侵犯品牌方及权利人知识产权（商标权、著作权、专利权）权利以及其他与知识产权相关涉嫌侵权（不正当竞争等）的行为进行全网线上、全国线下的高效打击。
          <br>
          <br>
          战略合作了全国50+知识产权专业律所、司法鉴定机构、公正服务机构、调查取证团队、知产代理机构，联动行政、执法资源，为众多知名品牌和原创作者提供全链路（私立救济、调解救济、司法救济、行政救济、刑事救济）的知识产权保护服务。
        </span>
      </div>

      <img src="@/assets/bk/intellectualPropertyProtection3.png" class="intellectualPropertyProtection3"
           alt="intellectualPropertyProtection3">
    </div>


   <Bottom/>
  </div>
</template>

<style scoped>
.mainContain {
  width: 1920px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  left: -8px; /* 新增向左微调 */
  top: -8px;
  box-sizing: border-box; /* 新增盒模型计算方式 */
  background-color: #101010;
}


.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(16, 16, 16, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-content {
  max-width: 1920px;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
}


.logo {
  margin-left: 360px;
  /* 添加右边距 */
  margin-right: 40px;

}

.logo-image {
  width: 166px;
  height: 52px;
  object-fit: contain;
}

.nav-items {
  display: flex;
  gap: 68px; /* 修改间距为68px */
  list-style: none;
  /* margin-left: 606px; */
}

.nav-items > li > span {
  display: inline-block;
  transform: rotate(90deg);
  font-size: 12px;
  margin-left: 4px;
  vertical-align: middle;
}

.nav-items > li {
  color: #FFFFFF;
  cursor: pointer;
  transition: color 0.3s;
  font-size: 20px;
  line-height: 28px;
  font-family: "AlibabaPuHuiTi-2-115-Black", sans-serif;
  white-space: nowrap; /* 防止文字换行 */
  flex: 0 1 auto; /* 添加自适应宽度 */
  height: 80px;
  display: flex;
  align-items: center;
}


/* .nav-items li:hover {
  filter: brightness(0) saturate(100%) invert(45%) sepia(110%) saturate(800%) hue-rotate(0deg);
} */

.nav-items li.active,
.nav-items li:hover {
  color: #FF6600;
}

.nav-items > li:not(.login-item) {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-items > li:not(.login-item)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: linear-gradient(to right, #FF973A, #FF6600);
  border-radius: 3px;
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-items > li.active::after,
.nav-items > li:hover::after {
  width: 100%;
  opacity: 1;
  left: 0;
  transform: none;
}

.sub-nav {
  position: absolute;
  top: 100%;
  left: -35px;
  width: 160px;
  height: 249px;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 8px;
  border: 1px solid rgba(255, 102, 0, 0.32);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sub-nav li {

  margin-left: 12px;
  padding: 0;
  width: 136px;
  height: calc(100% / 5);
  line-height: 40px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s;

  text-align: center;
}

.sub-nav .subNavLi1 {
  margin-top: 5px;
}

.sub-nav .subNavLi1,
.sub-nav .subNavLi2,
.sub-nav .subNavLi3,
.sub-nav .subNavLi4 {
  border-bottom: 1px solid #161616;
  border-radius: 0.5px;
}


.nav-items li.active::after,
.nav-items li:hover::after {
  opacity: 1;
}

.login-item {
  margin-left: 236px !important;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 20px;
  line-height: 28px;
  color: #FFFFFF;
  font-weight: normal;
  display: flex;
  align-items: center;
  height: 28px;
  text-decoration: none; /* 去除下划线 */
  outline: none; /* 去除点击时的轮廓 */
}

.login-item:hover {
  color: #FFFFFF; /* 保持悬停颜色不变 */
  text-decoration: none; /* 确保悬停时也没有下划线 */
}

.login-icon {
  margin-right: 10px;
}

/*中间内容*/
.intellectualSection1 {
  width: 100%;
  height: 720px;
  background-image: url('@/assets/bk/intellectualPropertyProtection1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.intellectualTitle {
  /* width: 221px; */
  position: absolute;
  top: 308px;
  left: 400px;
}

.intellectualPoint {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #FF6600;
  /* border: #FF6600 solid 1px; */
}

.intellectualPoint1 {
  position: absolute;
  top: 404px;
  left: 400px;
}

.intellectualPoint2 {
  position: absolute;
  top: 404px;
  left: 555px;
}

.intellectualPoint3 {
  position: absolute;
  top: 404px;
  left: 730px;
}


.intellectualContent {
  font-size: 20px;
  line-height: 28px;
  font-family: "Microsoft YaHei", sans-serif;
  color: #FFFFFF;
}

.intellectualContent1 {
  position: absolute;
  top: 396px;
  left: 424px;
}

.intellectualContent2 {
  position: absolute;
  top: 396px;
  left: 579px;
}

.intellectualContent3 {
  position: absolute;
  top: 396px;
  left: 754px;
}


.intellectualSection2 {
  position: relative;
  width: 100%;
  height: 5486px;
}

.intellectualPropertyProtection2Contain {
  position: absolute;
  top: 40px;
  left: 360px;
  width: 1200px;
  height: 500px;
  background-image: url('@/assets/bk/intellectualPropertyProtection2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* border: #FF6600 solid 1px;
  border-radius: 3px; */
}
.intellectualPropertyProtection2Title {
  font-size: 32px;
  line-height: 45px;
  font-family: "AlibabaPuHuiTi_2_55_Regular", sans-serif;
  color: #FFFFFF;
  position: absolute;
  font-weight: 600;
  /* letter-spacing: 2px; */
  top: 67px;
  left: 60px;
}
.intellectualPropertyProtection2Content {
  font-family: "AlibabaPuHuiTi_2_55_Regular", sans-serif;
  font-size: 22px;
  line-height: 30px;
  color: #FFFFFF;
  width: 540px;
  height: 300px;
  position: absolute;
  top: 132px;
  left: 60px;
}


.intellectualPropertyProtection3 {
  position: absolute;
  top: 716px;
  left: 360px;
}

.section9 {
  width: 100%;
  height: 380px;
  background-color: #101010;
  background-image: url('@/assets/bk/section9.png'); /* 替换为实际背景图片路径 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.counselingHead {
  position: absolute;
  top: 63px; /* 距离父容器顶部距离 */
  left: 50%; /* 水平居中 */
  transform: translateX(-50%); /* 精确居中 */
}


.counselingButton {
  position: absolute;
  top: 247px; /* 距离父容器顶部距离 */
  left: 50%; /* 水平居中 */
  transform: translateX(-50%); /* 精确居中 */
}

.counselingInputContain1 {
  position: absolute;
  width: 180px;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.17) 100%);
  top: 143px;
  left: 360px;
  border-radius: 12px;
}

.counselingInputText1 {
  position: absolute;
  left: 12px;
  top: 20px;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 28px;
  color: #FFFFFF;
}

.counselingInput1 {
  position: absolute;
  height: 28px;
  width: 100px;
  background-color: transparent;
  border: 1px solid transparent;
  /* border: 1px solid #FFFFFF; */
  color: #FFFFFF;
  top: 23px;
  left: 70px;
  font-size: 24px;
  /* padding: 10px; */
}

.counselingInput1:focus {
  border-color: transparent;
  outline: none; /* 移除默认的focus轮廓 */
}

.counselingInputContain2 {
  position: absolute;
  width: 224px;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.17) 100%);
  top: 143px;
  left: 552px;
  border-radius: 12px;
}

.counselingInputText2 {
  position: absolute;
  left: 12px;
  top: 20px;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 28px;
  color: #FFFFFF;
}

.counselingInput2 {
  position: absolute;
  height: 28px;
  width: 145px;
  background-color: transparent;
  border: 1px solid transparent;
  /* border: 1px solid #FFFFFF; */
  color: #FFFFFF;
  top: 23px;
  left: 70px;
  font-size: 24px;
  /* padding: 10px; */
}

.counselingInput2:focus {
  border-color: transparent;
  outline: none; /* 移除默认的focus轮廓 */
}

.counselingInputContain3 {
  position: absolute;
  width: 350px;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.17) 100%);
  top: 143px;
  left: 788px;
  border-radius: 12px;
}

.counselingInputText3 {
  position: absolute;
  left: 12px;
  top: 20px;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 28px;
  color: #FFFFFF;
}

.counselingInput3 {
  position: absolute;
  height: 28px;
  width: 270px;
  background-color: transparent;
  border: 1px solid transparent;
  /* border: 1px solid #FFFFFF; */
  color: #FFFFFF;
  top: 23px;
  left: 70px;
  font-size: 24px;
  /* padding: 10px; */
}

.counselingInput3:focus {
  border-color: transparent;
  outline: none; /* 移除默认的focus轮廓 */
}

.counselingInputContain4 {
  position: absolute;
  width: 410px;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.17) 100%);
  top: 143px;
  left: 1150px;
  border-radius: 12px;
}

.counselingInputText4 {
  position: absolute;
  left: 12px;
  top: 20px;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 28px;
  color: #FFFFFF;
}

.counselingInput4 {
  position: absolute;
  height: 28px;
  width: 270px;
  background-color: transparent;
  border: 1px solid transparent;
  /* border: 1px solid #FFFFFF; */
  color: #FFFFFF;
  top: 23px;
  left: 128px;
  font-size: 24px;
  /* padding: 10px; */
}

.counselingInput4:focus {
  border-color: transparent;
  outline: none; /* 移除默认的focus轮廓 */
}


.section10 {
  position: relative;
  width: 100%;
  height: 580px;
  background-color: #101010;
  background-image: url('@/assets/bk/section10.png'); /* 替换为实际背景图片路径 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

.whiteLogo {
  position: absolute;
  top: 80px;
  left: 360px;

  width: 228px;
  height: 72px;

}


.navigateBottom {
  position: absolute;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  top: 80px;
  left: 1020px;
  /* padding: 0; */
  /* margin-top: 40px; */
}

.navigateBottom li {
  color: #FFFFFF;
  font-size: 27.5px;
  line-height: 39px;
  width: 111px;
  height: 40px;
  font-style: normal;
  text-align: left;
}

.navigateBottom li:hover {
  color: #FF6600;
}

.bottomText1 {
  position: absolute;
  top: 192px;
  left: 360px;
  font-family: "Microsoft YaHei", sans-serif;
  letter-spacing: 2px;
  font-size: 27.5px;
  line-height: 40px;
  color: #FFFFFF;
}

.bottomText2 {
  position: absolute;
  top: 248px;
  left: 360px;
  font-family: "Microsoft YaHei", sans-serif;
  letter-spacing: 2px;
  font-size: 21.5px;
  line-height: 30px;
  color: #FFFFFF;
}

.bottomText3 {
  position: absolute;
  top: 294px;
  left: 360px;
  font-family: "Microsoft YaHei", sans-serif;
  letter-spacing: 2px;
  font-size: 21.5px;
  line-height: 30px;
  color: #FFFFFF;
}

.bottomText4 {
  position: absolute;
  top: 340px;
  left: 360px;
  font-family: "Microsoft YaHei", sans-serif;
  letter-spacing: 2px;
  font-size: 21.5px;
  line-height: 30px;
  color: #FFFFFF;
}

.bottomLine {
  position: absolute;
  width: 1372px;
  height: 4px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  top: 460px;
  left: 274px;
}

.bottomText5 {
  position: absolute;
  top: 507px;
  left: 783px;
  font-family: "Microsoft YaHei", sans-serif;
  letter-spacing: 2px;
  font-size: 21.5px;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.6);
}
</style>